﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using OGS.Contracts;
using OGS.DataAccess;

namespace OGS.Web.Models.Admin
{
    public class BrandListModel
    {
        public List<Brand> Brands { get; set; }

        public SearchAttributes SearchAttributes { get; set; }

        public string Name { get; set; }

        /// <summary>
        /// Populate List
        /// </summary>
        /// <param name="SearchAttributes"></param>
        public void Populate(string Name, SearchAttributes SearchAttributes)
        {
            Brand oBrand = new Brand { Name = Name };
            this.Brands = DABrand.Instance.SearchBrand(oBrand, SearchAttributes);
        }

    }
}